package com.shengsiyuan.decorator;

/**
 * Created by deng_wb on 2019/8/11
 */
public class ConcreteDecorator2 extends Decorator{

    public ConcreteDecorator2(Component component){
        super(component);
    }

    @Override
    public void doSomething() {
        super.doSomething();
        this.doAnotherThing();
    }

    private void doAnotherThing(){
        System.out.println("功能C");
    }
}
